import { Route } from '@angular/router';

export default [
  { path: '', redirectTo: 'account', pathMatch: 'full' },
  { path: 'account', title: '账号管理', data: { key: 'account' }, loadComponent: () => import('./admin-user/user-table/user-table.component').then(m => m.UserTableComponent) },
  { path: 'dept', title: '部门管理', data: { key: 'dept' }, loadComponent: () => import('./dept/dept.component').then(m => m.DeptComponent) },
  { path: 'menu', title: '菜单管理', data: { key: 'menu' }, loadComponent: () => import('./menu/menu.component').then(m => m.MenuComponent) },
  { path: 'cardScan', title: '卡号识别', data: { key: 'cardScan' }, loadComponent: () => import('./card-scan/card-scan.component').then(m => m.CardScanComponent) },
  { path: 'cardRegex', title: '匹配规则', data: { key: 'cardRegex' }, loadComponent: () => import('./card-regex/card-regex.component').then(m => m.CardRegexComponent) },
  { path: 'role', loadChildren: () => import('../system-manage/role-manager/role-manager-routing') }
] as Route[];
